include ../config/kern.conf

all:	
	cd lib && make objects
	cd mm && make objects
	cd intr && make objects
	cd pm && make objects
	cd vfs && make objects
	
	
	gcc ${CFLAGS} -o ktty.o lib/ktty.c
	gcc ${CFLAGS} -o kprintf.o lib/kprintf.c

	g++ ${NOFLAGS} ${CFLAGS} -o kernel.o Kernel.cc
	nasm ${NFLAGS} -o kernjmp.o ${MACHDEP}/boot/kernjmp.s

clean:
	for i in `ls *.o`; do rm $$i; done
	cd ${MACHDEP}/boot && make clean
